//============================================================================
// Copyright (C) 2003-2013 Brett R. Jones 
// All Rights Reserved
//
// You may redistribute and/or modify for non commercial and commercial uses 
// provided this copyright notice remains in place and is not modified
//
// This code is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
// brettjones1900@gmail.com
// http://www.p2panarchy.com
//============================================================================

#ifndef VX_ENT_ITEM_DATA_DEFINE
class VxEntItemData
{
	int iRes[4];
};
#endif// VX_ENT_ITEM_DATA_DEFINE
class PktItemReq : public VxPktHdr
{
public:
	PktItemReq()
	{
		m_u16PktLen = sizeof( PktItemReq );
		m_u16PktType = PKT_TYPE_ITEM_REQ;
	}
	U16					u16Action;		// action to take
	U32					u32Res;			// reserved
	VxEntId				oId;			// id of item
	GoSrvLocation		oLocation;		// location of item
	VxEntItemData		oItemData;	// all about the creature
	U8					au8Res[12];//res to round to 16 bytes
};
class PktItemReply : public VxPktHdr
{
public:
	PktItemReply()
	{
		m_u16PktLen = sizeof( PktItemReply );
		m_u16PktType = PKT_TYPE_ITEM_REPLY;
	}
	U16				u16Action;		// action to take
	U32				u64Sn;			// id of creature
	U8				au8Res[4];//res to round to 16 bytes
};
